import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
  server: {
    hmr: true,
    proxy: {
      "/api": "http://template.josephxia.com",
    }
  },
  resolve: {
    alias: {
      '@': '/src'
    }
  },
  plugins: [react()],
  css: {
    modules: {
      hashPrefix: "prefix",
    },
    preprocessorOptions: {
      less: {
        javascriptEnabled: true,
      },
    },
  }
})
